export function enum2options<T = string | number>(target: any): {label: string, value: T}[] {
  return Object.keys(target)
    .filter(key => isNaN(Number(key)))
    .map(key => ({label: key, value: target[key]}))
}